<?php
/**
 * Created by PhpStorm.
 * User: qingyun
 * Date: 19/5/14
 * Time: 下午3:13
 */

namespace app\admin\controller;

use think\Controller;

class Base extends Controller
{
    public function __construct()
    {
        parent::__construct();

        if (!session('adminUserInfo')){
            $this->error('您需要登录');
        }
    }



    public function logout()
    {
        session('adminUserInfo', null);
        $this->redirect('admin/Sign/login');


    }
}